<!DOCTYPE html><html><head>
  <title>:empty pseudo-class and empty elements</title>
  <style type="text/css">
 address:empty { background: lime; }
 address { background: red; margin: 0; height: 1em; }
 .text { margin: -1em 0 0 0; }
</style>
  <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
  <link rel="help" href="https://www.w3.org/TR/css3-selectors/#selectors"> <!-- bogus link to make sure it gets found -->
  <link rel="match" href="reference/this-line-lime-background-offset.xht">
  <meta name="flags" content="">
 </head>
 <body>
 <address><!--Replaced (address) --></address>
 <div class="text">This line should have a green background.</div>

</body></html>